<?php
/**
 * User change password page for admin. Used in changeUserPassword action in UserController.
 *
 * @package   views
 * @subpackage user
 * @since     1.0
 * @filesource
 */

$this->breadcrumbs=array(
	'Users'=>array('admin'),
	$model->username=>array('update','id'=>$model->id),
	'Change Password',
);

$this->menu=array(
	array('label'=>'Create User', 'url'=>array('create')),
	array('label'=>'Update User', 'url'=>array('update','id'=>$model->id)),
	array('label'=>'Manage User', 'url'=>array('admin')),
);
?>

<h1>Change User's Password - <?php echo $model->username; ?></h1>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>
	
	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo CHtml::label('New Password','password');//$form->labelEx($model,'password');?>
		<?php echo $form->textField($model,'password',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'password');?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->